home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: uu4news.netcom.com!zodiac!szh
- From: szh@zcon.com (Syed Zaeem Hosain)
- Subject: Re: A question on for loop
- Message-ID: <1996Mar16.054906.8286@zcon.com>
- Sender: szh@zcon.com (Syed Zaeem Hosain)
- Nntp-Posting-Host: zodiac
- Reply-To: szh@zcon.com
- Organization: Z Consulting Group
- References: <826934210snz@genesis.demon.co.uk>
- Date: Sat, 16 Mar 1996 05:49:06 GMT
-
- In article <826934210snz@genesis.demon.co.uk>, Lawrence Kirby <fred@genesis.demon.co.uk> writes:
- >In article <1996Mar14.041132.26035@zcon.com>
- > szh@zcon.com "Syed Zaeem Hosain" writes:
- >
- >> i = 0;
- >> while ( i < 20 )
- >> {
- >> [some code here]
- >> ...
- >>
- >> ++i; /* Can be i++ without any difference */
- >> }
- >>
- >>The ++i can be i++ without any difference *in this case shown* since
- >>you are not relying on the side effect of the assignment.
- >
- >Or rather you are relying on the side effect only and not the value of the
- >expression.
-
- Oops, sorry, yes. I said it back-a**wards. Change the "not" in my
- statement to "only"! :-)
-
- Z
-
-
- --
- -------------------------------------------------------------------------
- | Syed Zaeem Hosain P. O. Box 610097 (408) 441-7021 |
- | Z Consulting Group San Jose, CA 95161 szh@zcon.com |
- -------------------------------------------------------------------------
-